package com.candy.candymessagerpc.service;

import com.candy.candycommon.utils.ResultBean;
import com.candy.candymessagerpc.bean.Message;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "candy-message", path = "message")
public interface MessageService {

    @PostMapping("send")
    ResultBean send(@RequestBody Message message);

}
